package com.ruoyi.domain;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.system.domain.ProCreateBuilding;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 本厂库存对象 this_stock
 * 
 * @author ruoyi
 * @date 2020-07-06
 */
public class ThisStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    public ProCreateBuilding getProCreateBuilding() {
        return proCreateBuilding;
    }

    public void setProCreateBuilding(ProCreateBuilding proCreateBuilding) {
        this.proCreateBuilding = proCreateBuilding;
    }

    @Excels({
            @Excel(name="项目名称",targetAttr = "pName", type = Excel.Type.EXPORT),
            @Excel(name="创建时间",targetAttr = "pTime" ,type = Excel.Type.EXPORT),
            @Excel(name="项目经理",targetAttr = "pFounder",type = Excel.Type.EXPORT)
    })
    private ProCreateBuilding proCreateBuilding;

    /** id */
    private Long id;

    /** 材料名称 */
    @Excel(name = "材料名称")
    private String tName;

    /** 材料数量 */
    @Excel(name = "材料数量")
    private Long tNum;

    /** 项目外键 */
   // @Excel(name = "项目外键")
    private Long tId;



    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void settName(String tName) 
    {
        this.tName = tName;
    }

    public String gettName() 
    {
        return tName;
    }
    public void settNum(Long tNum) 
    {
        this.tNum = tNum;
    }

    public Long gettNum() 
    {
        return tNum;
    }
    public void settId(Long tId) 
    {
        this.tId = tId;
    }

    public Long gettId() 
    {
        return tId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tName", gettName())
            .append("tNum", gettNum())
            .append("tId", gettId())
                .append("proCreateBuilding",getProCreateBuilding())
            .toString();
    }
}
